<template>
  <div class="about">
    <h1>{{details.title}}</h1>
    <h1 v-html='details.content'></h1>
  </div>
</template>
<script>
import axios from '@/http/axios'
export default{
    created(){
      this.findDetail(this.$route.query.id)
    },
    data(){
      return{
        details:[]
      }
    },
    methods:{
      findDetail(id){
        var obj={
          id:id
        }
        axios({
          url:'http://121.199.29.84:8001/article/findById',
          method:'get',
          params:obj
        }).then((res)=>{
          console.log(res)
          this.details=res.data.data;
        })
      }
    }
}
</script>